package homework;

import java.util.Scanner;

public class SumString {
    public static void main(String[] args) {
        Scanner input=new Scanner(System.in);
        System.out.println("请输入第一个字符串");
        String string1=input.nextLine();
        byte []num1=string1.getBytes();
        int number1=num1[0];
        System.out.println("第一个字符串的值为"+number1);
        System.out.println("请输入第二个字符串");
        String string2=input.nextLine();
        byte []num2=string2.getBytes();
        int number2=num2[0];
        System.out.println("第二个字符串的值为"+number2);
        System.out.println("这两个字符串的和为："+(number1+number2));

    }
}
